package com.zengjianjun.es.demo.entity;

import com.zengjianjun.es.demo.common.EsConstant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @author zengjianjun
 */
@EqualsAndHashCode(callSuper = true)
@Data
@SuperBuilder
@Document(indexName = EsConstant.INDEX_ACTIVE)
@AllArgsConstructor
@NoArgsConstructor
public class EsActiveEntity extends EsBaseEntity {

    @Field(type = FieldType.Keyword)
    private String clickId;

    @Field(type = FieldType.Keyword)
    private String offerId;

    @Field(type = FieldType.Keyword)
    private String publisherId;

    @Field(type = FieldType.Keyword)
    private String subAffId;

    @Field(type = FieldType.Keyword)
    private String event;
}
